// import Cookies from 'js-cookie'
// const sessionStorage = window.sessionStorage
import Store from '@/utils/storage.js'

const TokenKey = 'Admin-Token'
const MenuKey = 'MenuObj'
const stsToken = 'stsToken'

export function getToken() {
  return Store.get(TokenKey)
}

export function setToken(token) {
  return Store.set(TokenKey, token)
}

export function removeToken() {
  return Store.remove(TokenKey)
}

export function getMenuObj() {
  return Store.get(MenuKey)
}

export function setMenuObj(obj) {
  return Store.set(MenuKey, obj)
}

export function removeMenuObj() {
  return Store.remove(MenuKey)
}

export function getStsToken() {
  return Store.get(stsToken)
}

export function setStsToken(obj) {
  return Store.set(stsToken, obj)
}

